import App from './App'
import * as Pinia from 'pinia';
import uvUI from '@/uni_modules/uv-ui-tools'
import { Request } from '@/util/request/index'
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  app.use(Pinia.createPinia());
  app.use(uvUI);
  Request(app)
  return {
    app
  }
}
// #endif

// uni.$uv.setConfig({
// 	config: {
// 		unit: 'rpx'
// 	}
// })
